/**
 * 
 */
package com.sogeti.mentormatch;

/**
 * @author Matthew L. Maurer <matthew.maurer@us.sogeti.com>
 */
public class DataAccessException extends Exception
{
    /**
     * 
     */
    private static final long serialVersionUID = 3637387050116277282L;
    DataAccessViolation violation;

    /**
     * @param message
     */
    public DataAccessException ( DataAccessViolation violationToSet,
            String message )
    {
        super(message);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param cause
     */
    public DataAccessException ( DataAccessViolation violationToSet,
            Throwable cause )
    {
        super(cause);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param message
     * @param cause
     */
    public DataAccessException ( DataAccessViolation violationToSet,
            String message, Throwable cause )
    {
        super(message, cause);
        // TODO Auto-generated constructor stub
    }

    /**
     * @return the violation
     */
    public DataAccessViolation getViolation ( ) {
        return violation;
    }
}
